package ModelLayer;

public class Person
{
    // instance variables
    private long id;
    private String name;
    private String address;
    private String postnr;
    private String city;
    private String tel;

    /**
     * Constructor for objects of class Person
     */
    public Person(long _id, String _name, String _address, String _postnr, String _city, String _tel)
    {
        // initialise instance variables
        id = _id;
        name = _name;
        address = _address;
        postnr = _postnr;
        city = _city;
        tel = _tel;
   
    }
    
    /**
     * Mutators
     */
    public void setID(long _value)
    {
        id = _value;
    }
    
    public void setname(String _value)
    {
        name = _value;
    }
    
    public void setaddress(String _value)
    {
        address = _value;
    }
    
    public void setPostnr(String _value)
    {
        postnr = _value;
    }
    
    public void setcity(String _value)
    {
        city = _value;
    }
    
    public void settel(String _value)
    {
        tel = _value;
    }
    
    /**
     * Accessors
     */
    public long getID()
    {
        return id;
    }
    
    public String getname()
    {
        return name;
    }
    
    public String getaddress()
    {
        return address;
    }
    
    public String getPostnr()
    {
        return postnr;
    }
    
    public String getcity()
    {
        return city;
    }
    
    public String getTel()
    {
        return tel;
    }
}